<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>修改用户</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :model="form" ref="contract" inline-message="true" style="width: 100%">
      <el-input v-model.trim="form.Enterprise_Info_SerialNumber" v-show="false"></el-input>
      <el-input v-model.trim="form.Industry_SubCategory_SerialNumber" v-show="false"></el-input>
      <el-input v-model.trim="form.Industry_Category_SerialNumber" v-show="false"></el-input>
      <div class="table_titel">
        <div class="titel">增加商品</div>
      </div>
      <el-descriptions :column="3" border size="small">
        <el-descriptions-item label="商品名称">
          <el-form-item prop="Article_Name">
            <el-input v-model.trim="form.Article_Name" placeholder="请输入商品名称"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品品牌">
          <el-form-item prop="Brand_SerialNumber">
            <el-input v-model.trim="form.Brand_SerialNumber" placeholder="请输入商品品牌"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品主标签">
          <el-form-item prop="Category_SerialNumber">
            <el-select v-model.trim="form.Category_SerialNumber" placeholder="商品类型" filterable style="width: 100%">
              <el-option label="狗粮" value="0"></el-option>
              <el-option label="猫粮" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品款号">
          <el-form-item prop="Item_SerialNumber">
            <el-input v-model.trim="form.Item_SerialNumber" placeholder="请输入商品款号"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品系列">
          <el-form-item prop="Series_SerialNumber">
            <el-input v-model.trim="form.Series_SerialNumber" placeholder="请输入商品系列"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品价格">
          <el-form-item prop="Unit_Price">
            <el-input v-model.trim="form.Unit_Price" placeholder="请输入商品价格"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="商品单位">
          <el-form-item prop="Weight_Unit">
            <el-input v-model.trim="form.Weight_Unit" placeholder="请输入商品单位"></el-input>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>

      <div class="table_titel">
        <div class="titel">条形码</div>
        <div class="operation">
          <el-button type="primary" size="small" @click="add_barcode">新增</el-button>
          <el-button type="danger" size="small" @click="remove_barcode">删除</el-button>
        </div>
      </div>
      <el-descriptions :column="3" border size="small" v-for="(item,index) in form.Children.barcode" :key="item.key">
        <el-input v-model.trim="item.Insurance_Type_SerialNumber"
          :prop="'Children.barcode.' + index + '.Insurance_Type_SerialNumber'" v-show="false">
        </el-input>
        <el-input v-model.trim="item.Insurance_Category_SerialNumber"
          :prop="'Children.barcode.' + index + '.Insurance_Category_SerialNumber'" v-show="false">
        </el-input>
        <el-descriptions-item label="条形码">
          <el-form-item :prop="'Children.barcode.' + index + '.Brand_Name'">
            <el-input v-model.trim="item.Brand_Name" placeholder="条形码"></el-input>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>

      <div class="table_titel">
        <div class="titel">采购</div>
        <div class="operation">
          <el-button type="primary" size="small" @click="add_purchase_unitprice">新增</el-button>
          <el-button type="danger" size="small" @click="remove_purchase_unitprice">删除</el-button>
        </div>
      </div>
      <el-descriptions :column="3" border size="small" v-for="(item,index) in form.Children.purchase_unitprice" :key="item.key">
        <el-input v-model.trim="item.Insurance_Type_SerialNumber"
          :prop="'Children.purchase_unitprice.' + index + '.Insurance_Type_SerialNumber'" v-show="false">
        </el-input>
        <el-input v-model.trim="item.Insurance_Category_SerialNumber"
          :prop="'Children.purchase_unitprice.' + index + '.Insurance_Category_SerialNumber'" v-show="false">
        </el-input>
        <el-descriptions-item label="采购单价">
          <el-form-item :prop="'Children.purchase_unitprice.' + index + '.Purchase_Unit_Price_SerialNumber'">
            <el-input v-model.trim="item.Purchase_Unit_Price_SerialNumber" placeholder="采购单价"></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="供应商">
          <el-form-item :prop="'Children.purchase_unitprice.' + index + '.Supplier_SerialNumber'">
            <el-input v-model.trim="item.Supplier_SerialNumber" placeholder="供应商"></el-input>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>

      <div class="table_titel">
        <div class="titel">副标签</div>
        <div class="operation">
          <el-button type="primary" size="small" @click="add_series">新增</el-button>
          <el-button type="danger" size="small" @click="remove_series">删除</el-button>
        </div>
      </div>
      <el-descriptions :column="3" border size="small" v-for="(item,index) in form.Children.series" :key="item.key">
        <el-input v-model.trim="item.Insurance_Type_SerialNumber"
          :prop="'Children.series.' + index + '.Insurance_Type_SerialNumber'" v-show="false">
        </el-input>
        <el-input v-model.trim="item.Insurance_Category_SerialNumber"
          :prop="'Children.series.' + index + '.Insurance_Category_SerialNumber'" v-show="false">
        </el-input>
        <el-descriptions-item label="商品副标签">
          <el-form-item :prop="'Children.series.' + index + '.Category_Name'">
            <el-select v-model.trim="item.Category_Name" placeholder="商品副标签" filterable style="width: 100%">
              <el-option label="狗粮" value="0"></el-option>
              <el-option label="猫粮" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>

      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
  <script type="text/javascript" src="../../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../../js/ID_Validity.js"></script>
  <script type="text/javascript" src="./js/Edit.js"></script>
  <script type="text/javascript">

  </script>
</body>

</html>